function getDistanceFromRoot(separator){
	var root = location.hostname
	var thisPath = location.pathname
	var pathSplit = thisPath.split("/")
	document.write(pathSplit.length + " - " + getIndexOf(root, pathSplit) + " - 1<br />")
	document.write(root + "<br />")
	return pathSplit.length - getIndexOf(root, pathSplit) - 1
}

function getIndexOf(value, inArray){
	var i = 0
	var limit = inArray.length
	
	while(i < limit){
		if(inArray[i] == value){
			return i;
		}
		
		i++;
	}
	
	return -1;
}

function writeDots(limit){
	var i = 0
	var dots = ""
	
	while(i < limit){
		dots += "../"
		i++;
	}
	
	return dots;
}